<!DOCTYPE html>
<html>

	<head>
		<meta charset="UTF-8">
		<title></title>
		<style>
			body {
				background: #ccc;
			}
			
			.box {
				width: 300px;
				height: 300px;
				border: 10px solid #000;
				background: url(img/2.jpg) no-repeat;
				/*放大图片,使之充满到相框的边界cover和contain*/
				
			}
		</style>
	</head>

	<body>
		<div class="box"></div>
	</body>

</html>